import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  pages: [
    {
      path: 'pages/tabbar/home/index',
      aliasPath: '/',
      layout: 'tabbar',
      type: 'home',
      style: {
        navigationBarTitleText: '',
      },
    },
    {
      path: 'pages/tabbar/my/index',
      aliasPath: '/',
      layout: 'tabbar',
      style: {
        navigationBarTitleText: '我的',
      },
    },
  ],
  globalStyle: {
    'navigationBarBackgroundColor': '#3F4CBC',
    'navigationBarTextStyle': 'white',
    'backgroundColor': '#fff',
    'backgroundTextStyle': '@bgTxtStyle',
    'backgroundColorTop': '@bgColorTop',
    'backgroundColorBottom': '@bgColorBottom',
    'pageOrientation': 'portrait',
    'navigationBarTitleText': '',
    'app-plus': {
      titleNView: false, // 移除 H5、APP 顶部导航
    },
  },
  tabBar: {
    color: '#7A7E83',
    selectedColor: '#007AFF',
    borderStyle: 'black',
    backgroundColor: '#F8F8F8',
    list: [
      {
        pagePath: 'pages/tabbar/home/index',
        iconPath: 'static/component.png',
        selectedIconPath: 'static/componentHL.png',
        text: '首页',
      },
      {
        pagePath: 'pages/tabbar/my/index',
        iconPath: 'static/extui.png',
        selectedIconPath: 'static/extuiHL.png',
        text: '我的',
      },
    ],
  },
})
